package cn.wolfcode.trip.core.util;

import lombok.Getter;
import lombok.Setter;

@Getter@Setter
public class JsonResult {
    private boolean success = true;
    private String errorMsg;
    private Object data;//成功时传递的数据

    //当需要封装错误信息的时候使用
    public void mark(String errorMsg){
        this.success = false;
        this.errorMsg =errorMsg;
    }
}
